<?
session_start();
include('../admin/bd.php');
Conectar();
$res_code=mysql_query("SELECT AffiliateId FROM tbl_affiliates WHERE AffiliateId='".$_POST[code_promotion]."'");
while($row_code = mysql_fetch_array($res_code, MYSQL_ASSOC)){
$_SESSION[code_promotio]=$row_code[StateAbrv];
$_SESSION[zip_d]=$row_code[DefaultZipCode];
}
Desconectar();
header('Location: ../shopping_cart.php');
?>